package com.jinyang.jetpackdemo.util.http.model

import com.google.gson.annotations.SerializedName

/**
 * @Author: LiuJinYang
 * @CreateDate: 2020/5/16 9:32
 *
 * 网络请求返回数据基类
 */
data class BaseHttpResponse<T> (
    @SerializedName(value = "message", alternate = ["Msg", "msg"]) var message: String? = null,
    @SerializedName(value = "code", alternate = ["Status", "status"]) var code: Int? = null,
    @SerializedName(value = "data", alternate = ["Data"]) var data: T?=null
)